package com.sls.web.manager.recharge.service;

import java.util.List;
import java.util.Map;

import com.sls.web.manager.page.Pagination;
import com.sls.web.manager.pojo.UserInfoVO;
import com.sls.web.manager.recharge.pojo.Operation;
import com.sls.web.manager.recharge.querybean.OperationQuery;

public interface OperationService {
	public void save(Operation operation, UserInfoVO userInfoVO)
			throws Exception;

	public void delete(Operation operation, UserInfoVO userInfoVO)
			throws Exception;

	public void update(Operation operation, UserInfoVO userInfoVO)
			throws Exception;

	public Operation findByCode(String code, UserInfoVO userInfoVO)
			throws Exception;

	public Pagination<Operation> findByPage(OperationQuery oq,
			UserInfoVO userInfoVO) throws Exception;

	public List<Operation> findList(UserInfoVO userInfoVO) throws Exception;

	/**
	 * 查询运营商信息，先到缓存查询，没有到数据库查询
	 * 
	 * @return
	 */
	Map<String, String> operation();

}
